package com.woniuxy.movice.service.imp;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import com.woniuxy.movice.dto.User;
import com.woniuxy.movice.mapper.UserMapper;
import com.woniuxy.movice.service.UserService;

import lombok.Data;

@Data
@Service
public class UserServiceImp implements UserService{

	@Resource
	private UserMapper userMapper;
	
	@Override
	public User findUserInfoByAccount(String account) {
		return userMapper.findUserInfoByAccount(account);
	}

	@Override
	public int updateUser(User user) {
		return userMapper.updateUser(user);
	}
	public User userLogin(String account, String pass) {
		// TODO Auto-generated method stubs
		return userMapper.userLogin(account, pass);
	}

	@Override
	public void userRegister(User user) {
		userMapper.userRegister(user);
		
	}

	@Override
	public User accountByUser(String account) {
		// TODO Auto-generated method stub
		return userMapper.accountByUser(account);
	}

}
